<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml" 
		xmlns:ui="http://java.sun.com/jsf/facelets" 
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core" 
		xmlns:p="http://primefaces.org/ui" 
		xmlns:pe="http://primefaces.org/ui/extensions" >
<h:body>
	<p:dialog widgetVar="membershipInactiveDialogWidget"
			id="membershipInactiveDialogWidgetId" height="550" width="500" header="Inactive Membership Package"
			closable="true" draggable="true" resizable="false" modal="true" appendToBody="true">
			<h:form id="InactiveMembershipForm" >
			<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />  
			<p:panel id="panel" header="Inactive Membership Package">  
				
					<h:panelGrid columns="3">  
					    <h:outputLabel for="name" value="Name: *" />  
					    <p:inputText id="name" value="#{membershipMB.membership.name}" required="true" label="Name" maxlength="100" readonly="true">
					    </p:inputText>
					    <p:message id="nameMsg" for="name" display="default" />  
					
						<h:outputLabel for="status" value="Status: *" />  
							<p:selectOneMenu id="status" value="#{membershipMB.membership.active}">  
					            <f:selectItem itemLabel="Active" itemValue="true" />  
					            <f:selectItem itemLabel="Inactive" itemValue="false" />  
					        </p:selectOneMenu> 
					    <p:message id="statusMsg" for="status" display="default" /> 
					    
					</h:panelGrid> 
					
					<p:commandButton id="btnSave" value="Update" update=":membershipList:membershipTable" action="#{membershipMB.updateMembership}"
					oncomplete="closeDialogIfSucess(xhr, status, args, membershipInactiveDialogWidget, 'membershipInactiveDialogWidgetId')" />  
				
			</p:panel>
			</h:form>
		</p:dialog>	
</h:body>
</html>